<template>
  <view class="container">
    <view class="header-section text-center">
      <image style="width: 150rpx;height: 150rpx;" src="/static/logo200.png" mode="widthFix">
      </image>
      <uni-title type="h2" title="秋语移动端"></uni-title>
    </view>

    <view class="content-section">
      <view class="menu-list">
        <view class="list-cell list-cell-arrow">
          <view class="menu-item-box">
            <view>版本信息</view>
            <view class="text-right">v{{version}}</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item-box">
            <view>官方邮箱</view>
            <view class="text-right">ruoyi@xx.com</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item-box">
            <view>服务热线</view>
            <view class="text-right">400-999-9999</view>
          </view>
        </view>
        <view class="list-cell list-cell-arrow">
          <view class="menu-item-box">
            <view>公司网站</view>
            <view class="text-right">
              <uni-link :href="url" :text="url" showUnderLine="false"></uni-link>
            </view>
          </view>
        </view>
      </view>
    </view>

    <view class="copyright">
      <view>Copyright &copy; 2025 ruoyi.vip All Rights Reserved.</view>
    </view>
  </view>
</template>

<script>
import { getEntries} from "@/api/base/entries";

  export default {
    data() {
      return {
        url: getApp().globalData.config.appInfo.site_url,
        version: getApp().globalData.config.appInfo.version,
        entryId: undefined,
        form : {
          entryId: null,
          userId: null,
          goalsModelId: [],
          goalsName: null,
          title: null,
          content: null,
          richContent: null,
          entryType: null,
          mood: null,
          weather: null,
          location: null,
          isPrivate: null,
          isFavorite: null,
          hasReminder: null,
          reminderDate: null,
          imagePaths: null,
          videoPaths: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          delFlag: null
        }
      }
    },
    props:{

  },
    onLoad(e) {
      this.entryId = e.entryId;
      this.getEntriesInfo();
    },
    methods: {
      getEntriesInfo() {
        getEntries(this.entryId).then(res => {
          this.form = res.data;
        });
      }
    }
  }
</script>

<style lang="scss" scoped>
  page {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #efeff4;
    min-height: 100%;
    height: auto;
  }

  .copyright {
    margin-top: 50rpx;
    text-align: center;
    line-height: 60rpx;
    color: #999;
  }

  .header-section {
    display: flex;
    padding: 30rpx 0 0;
    flex-direction: column;
    align-items: center;
  }
</style>
